.problemDrawer {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.problemDrawer :global(.ant-drawer-header) {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 24px;
}

.problemDrawer :global(.ant-drawer-title) {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.problemDrawer :global(.ant-drawer-body) {
  padding: 0;
}

.searchContainer {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.searchContainer :global(.ant-input-affix-wrapper) {
  flex: 1;
}

.filterButton {
  flex-shrink: 0;
}

.filtersContainer {
  padding: 0 10px 10px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #f0f0f0;
}

.difficultyFilter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.difficultyFilter :global(.ant-radio-button-wrapper) {
  margin-right: 0;
  border-radius: 4px !important;
  border: 1px solid #d9d9d9 !important;
  height: auto !important;
  padding: 4px 8px !important;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.difficultyFilter :global(.ant-radio-button-wrapper:not(:first-child)::before) {
  display: none;
}

/* 未选中状态 */
.difficultyFilter :global(.ant-radio-button-wrapper) {
  background-color: #fafafa;
  color: rgba(0, 0, 0, 0.65);
  border-color: #d9d9d9 !important;
}

/* 选中状态 */
.difficultyFilter :global(.ant-radio-button-wrapper-checked) {
  background-color: #e6f7ff !important;
  border-color: #1890ff !important;
  color: #1890ff;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

/* 选中状态左侧蓝条 */
.difficultyFilter :global(.ant-radio-button-wrapper-checked::before) {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #1890ff;
}

/* 鼠标悬浮样式 */
.difficultyFilter :global(.ant-radio-button-wrapper:hover) {
  color: #1890ff;
  border-color: #1890ff !important;
}

.tagsContainer {
  max-height: 150px;
  overflow-y: auto;
  padding: 6px;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #f0f0f0;
  margin-bottom: 12px;
}

.tagCheckboxGroup {
  display: flex;
  flex-wrap: wrap;
}

.tagCheckboxGroup :global(.ant-checkbox-wrapper) {
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 3px 6px;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-size: 12px;
}

.filterActions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.problemListHeader {
  padding: 6px 10px;
  font-size: 14px;
  color: #666;
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.problemList {
  padding: 0;
  overflow-y: auto;
}

.problemItem {
  padding: 5px 10px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.problemItem:hover {
  background-color: #f5f5f5;
}

.problemInfo {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  padding: 2px 0;
}

.problemTitle {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  margin-right: 6px;
}

.titleText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.problemId {
  flex-shrink: 0;
  font-weight: 600;
  color: #5c9bd1;
  font-size: 12px;
  margin-right: 4px;
  min-width: 30px;
}

.problemMeta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.problemTags {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
}

.problemTags :global(.ant-tag) {
  margin-right: 0;
  font-size: 11px;
  padding: 0 4px;
  line-height: 16px;
  height: 16px;
  border-radius: 2px;
}

.loadingContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.paginationContainer {
  padding: 10px;
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  position: sticky;
  bottom: 0;
}

.paginationRow {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.paginationControls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.pageSizeLabel,
.jumpLabel {
  white-space: nowrap;
}

.difficultyOption {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

/* 确保标签在选中和未选中状态下都有适当的样式 */
.difficultyFilter :global(.ant-tag) {
  margin: 0 !important;
  padding: 0 6px !important;
  font-size: 12px !important;
  line-height: 20px !important;
  height: 20px !important;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
}

/* 给"全部"按钮添加特殊样式 */
.difficultyFilter :global(.ant-radio-button-wrapper:first-child) {
  font-weight: 500;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
} 